package com.hd.day04;

import org.junit.Test;

public class LearnTwoArray01 {
    public static void main(String[] args) {
        int[][] arr = new int[2][2];
        arr[0][0] = 1;
        arr[0][1] = 1;
        arr[1][0] = 2;
        arr[1][1] = 2;


        int[][] arr01 = new int[2][];
        int[] a1 = new int[]{1, 2, 3, 4};
        int[] a2 = new int[]{1, 2, 3, 4, 5, 6};

        arr01[0] = a1;
        arr01[1] = a2;

        for (int i = 0; i < arr01.length; i++) {
            for (int j = 0; j < arr01[i].length; j++) {
                System.out.print(arr01[i][j] + "\t");
            }
            System.out.println();
        }
    }


    @Test
    public void test() {
        String str = "1";
        String s = String.valueOf(str);
        System.out.println(s);
    }
}
